import request  from "@/utils/request.js"

export const sectionlistServer = (params) =>{
    return request.get('/section/list',{params:params})
}

export const addsectionServer = (addData) =>{
    const params = new URLSearchParams();
    for (let key in addData){
          params.append(key,addData[key]);
    }
    return request.post('/section/add',params)
}

export const updatasectionServer = (addData) =>{
    const params = new URLSearchParams();
    for (let key in addData){
          params.append(key,addData[key]);
    }
    return request.put('/section/update',params)
}

export const delsectionServer = (id) =>{
    return request.delete('/section/del/'+id)
}